decisions = {

adopt_monastic_feudal_decision = {
		is_high_prio = yes
		filter = all
		from_potential = {
			ai = no
		}
		potential = {
			is_patrician = no
			NOT = {
				government = order_government
			}
			OR = {
				AND = {
						controls_religion = yes
						religion_group = pagan
						has_religion_feature = religion_temporal_head
						is_patrician = no
						government = feudal_government
				}
				
				AND = {
						is_patrician = no
						religion_group = pagan
						OR = {
							is_feudal = yes
							is_theocracy = yes
						}
						top_liege = {
							government = theocratic_feudal_governmenttwo
						}
				
				}
			}
			NOT = {
				government = theocratic_feudal_governmenttwo
				government = theocratic_feudal_government
			}

		}
		allow = {
			religion_group = pagan
			OR = {
				AND = {
						controls_religion = yes
						has_religion_feature = religion_temporal_head
						government = feudal_government
				}
				
				AND = {
						OR = {
							is_feudal = yes
							is_theocracy = yes
						}
						liege = {
							government = theocratic_feudal_governmenttwo
						}
				
				}
			}
		}
		effect = {
			ROOT = {
				any_demesne_title = {
					if = {
						limit = {
							OR = {
								title = d_norse_pagan_reformed
								title = d_tengri_pagan_reformed
								title = d_baltic_pagan_reformed
								title = d_finnish_pagan_reformed
								title = d_slavic_pagan_reformed
								title = d_aztec_reformed
								title = d_west_african_pagan_reformed
								title = d_zun_pagan_reformed
								title = k_hellenic_pagan
								title = d_huitzilopochtli
							}
						}
						set_title_flag = monasticfeudaltitle
					}
				}
				set_government_type = theocratic_feudal_governmenttwo
			}
		}
}

}